package packageLego;

import lejos.nxt.Button;
import lejos.nxt.Motor;
import lejos.nxt.remote.*;

public class Motors {
	

     
     public static void main(String[] args) throws InterruptedException {
    	
    	 while(!Button.ESCAPE.isPressed())
 		{
    		   Motor.A.setSpeed(720);// 2 RPM
    		   Motor.B.setSpeed(720);
    		   Motor.A.forward();
    		   Motor.B.forward();
 		}
    	 
    	 
     }
     
     
	

}
